//
// Created by jmdvirus on 2020/4/28 上午10:48.
// Copyright (c) 2020 benewtech All rights reserved.
//     
//     ******          *             *--*
//       ||            *             |
//       ||  *--*--*---*  * *-********--*
//   *  //   *  *  *   *\ / ||  |  |    |
//    **    *  *  *---* *  *   *--* *--*
// 

#include <QLabel>
#include "OpenGLQtRaw.h"

OpenGLQtRaw::OpenGLQtRaw(int width, int height, QWidget *parent) : QWidget(parent)
{
    m_width = width;
    m_height = height;
    m_gl.setParent(this);
    m_gl.setGeometry(0, 0, width, height);
}

OpenGLQtRaw::~OpenGLQtRaw() noexcept {

}

void OpenGLQtRaw::init() {
}

void OpenGLQtRaw::setFrame(unsigned char *data, int width, int height) {
    m_gl.set_data(data, width, height);
}

